package com.wilmer.comonUser.controller;

import com.wilmer.comonUser.domain.DeptUserVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wilmer.common.core.controller.BaseController;
import com.wilmer.common.core.domain.AjaxResult;
import com.wilmer.comonUser.service.IcomonUserService;

/**
 * 用户信息Controller
 *
 * @author hans
 * @date 2024-04-11
 */
@Api(tags = {"获取部门下用户接口"})
@RestController
@RequestMapping("/comonUser/comonUser")
public class comonUserController extends BaseController
{
    @Autowired
    private IcomonUserService comonUserService;

    /**
     * 查询部门下用户
     */
    @ApiOperation("查询部门下用户---参数不用传直接get请求")
    @GetMapping("/getDeptUser")
    public AjaxResult getDeptUser(DeptUserVo userVo)
    {
        return AjaxResult.success(comonUserService.getDeptUser(userVo));
    }
}
